figure('Position', [100, 100, 1000, 400]); % 调整图形窗口大小

% 调整子图的边距和间距
subplot_positions = {
    [0.08, 0.15, 0.25, 0.7];   % 第一个子图位置 [left, bottom, width, height]
    [0.41, 0.15, 0.25, 0.7];   % 第二个子图位置
    [0.74, 0.15, 0.25, 0.7];   % 第三个子图位置
};

% 第一个子图
subplot('Position', subplot_positions{1});
hold on;
axis equal;
grid on;
xlim([-3 3]);
ylim([0 3]);

% 标记点(x_j, t_3)
plot(0, 3, 'ro', 'MarkerSize', 6, 'MarkerFaceColor', 'r');
plot(0, 2, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(0, 1, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(0, 0, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');

% 设置标题和坐标轴标签
title('Case 1: \mu = 0', 'FontSize', 10);
xlabel('x', 'FontSize', 9);
ylabel('t', 'FontSize', 9);
hold off;

% 第二个子图
subplot('Position', subplot_positions{2});
hold on;
axis equal;
grid on;
xlim([-3 3]);
ylim([0 3]);

% 标记点(x_j, t_3)
plot(0, 3, 'ro', 'MarkerSize', 6, 'MarkerFaceColor', 'r');
plot(1, 2, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(2, 1, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(3, 0, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');

% 设置标题和坐标轴标签
title('Case 2: \mu = -1', 'FontSize', 10);
xlabel('x', 'FontSize', 9);
ylabel('t', 'FontSize', 9);
hold off;

% 第三个子图
subplot('Position', subplot_positions{3});
hold on;
axis equal;
grid on;
xlim([-3 3]);
ylim([0 3]);

% 标记点(x_j, t_3)
plot(0, 3, 'ro', 'MarkerSize', 6, 'MarkerFaceColor', 'r');
plot(1, 2, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(0, 2, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(2, 1, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(1, 1, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(0, 1, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(3, 0, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(2, 0, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(1, 0, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');
plot(0, 0, 'bo', 'MarkerSize', 6, 'MarkerFaceColor', 'b');

% 设置标题和坐标轴标签
title('Case 3: \mu = -2', 'FontSize', 10);
xlabel('x', 'FontSize', 9);
ylabel('t', 'FontSize', 9);
hold off;

% 添加整体标题
sgtitle('The numerical domains of dependence for the upwind method', 'FontSize', 12, 'FontWeight', 'bold');